package com.ktgj.flight.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.flight.mapper.FlightDeliverPostorderMapper;
import com.ktgj.flight.domain.FlightDeliverPostorder;
import com.ktgj.flight.service.IFlightDeliverPostorderService;

/**
 * 会员邮寄订单明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-26
 */
@Service
public class FlightDeliverPostorderServiceImpl implements IFlightDeliverPostorderService 
{
    @Autowired
    private FlightDeliverPostorderMapper flightDeliverPostorderMapper;

    /**
     * 查询会员邮寄订单明细
     * 
     * @param deliverPostorderId 会员邮寄订单明细ID
     * @return 会员邮寄订单明细
     */
    @Override
    public FlightDeliverPostorder selectFlightDeliverPostorderById(Long deliverPostorderId)
    {
        return flightDeliverPostorderMapper.selectFlightDeliverPostorderById(deliverPostorderId);
    }

    /**
     * 查询会员邮寄订单明细列表
     * 
     * @param flightDeliverPostorder 会员邮寄订单明细
     * @return 会员邮寄订单明细
     */
    @Override
    public List<FlightDeliverPostorder> selectFlightDeliverPostorderList(FlightDeliverPostorder flightDeliverPostorder)
    {
        return flightDeliverPostorderMapper.selectFlightDeliverPostorderList(flightDeliverPostorder);
    }

    /**
     * 新增会员邮寄订单明细
     * 
     * @param flightDeliverPostorder 会员邮寄订单明细
     * @return 结果
     */
    @Override
    public int insertFlightDeliverPostorder(FlightDeliverPostorder flightDeliverPostorder)
    {
        return flightDeliverPostorderMapper.insertFlightDeliverPostorder(flightDeliverPostorder);
    }

    /**
     * 修改会员邮寄订单明细
     * 
     * @param flightDeliverPostorder 会员邮寄订单明细
     * @return 结果
     */
    @Override
    public int updateFlightDeliverPostorder(FlightDeliverPostorder flightDeliverPostorder)
    {
        return flightDeliverPostorderMapper.updateFlightDeliverPostorder(flightDeliverPostorder);
    }

    /**
     * 批量删除会员邮寄订单明细
     * 
     * @param deliverPostorderIds 需要删除的会员邮寄订单明细ID
     * @return 结果
     */
    @Override
    public int deleteFlightDeliverPostorderByIds(Long[] deliverPostorderIds)
    {
        return flightDeliverPostorderMapper.deleteFlightDeliverPostorderByIds(deliverPostorderIds);
    }

    /**
     * 删除会员邮寄订单明细信息
     * 
     * @param deliverPostorderId 会员邮寄订单明细ID
     * @return 结果
     */
    @Override
    public int deleteFlightDeliverPostorderById(Long deliverPostorderId)
    {
        return flightDeliverPostorderMapper.deleteFlightDeliverPostorderById(deliverPostorderId);
    }
}
